import request from '@/utils/request'

// 查询处罚用户时间列表
export function listSealTime(query) {
  return request({
    url: '/user/sealTime/list',
    method: 'get',
    params: query
  })
}

// 查询处罚用户时间详细
export function getSealTime(id) {
  return request({
    url: '/user/sealTime/' + id,
    method: 'get'
  })
}

// 新增处罚用户时间
export function addSealTime(data) {
  return request({
    url: '/user/sealTime',
    method: 'post',
    data: data
  })
}

// 修改处罚用户时间
export function updateSealTime(data) {
  return request({
    url: '/user/sealTime',
    method: 'put',
    data: data
  })
}

// 删除处罚用户时间
export function delSealTime(id) {
  return request({
    url: '/user/sealTime/' + id,
    method: 'delete'
  })
}
